package com.iot.device.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.iot.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.iot.common.core.domain.BaseEntity;

/**
 * 压力传感器事件对象 t_pressure_sensor_event
 *
 * @author iot
 * @date 2023-06-30
 */
public class PressureSensorEvent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private PressureSensorClient client;

    public PressureSensorClient getClient() {
        return client;
    }

    public void setClient(PressureSensorClient client) {
        this.client = client;
    }

    /**  */
    private Long id;

    /** 设备序列号 */
    @Excel(name = "设备序列号")
    private String sn;

    /** 单位ID */
    @Excel(name = "单位ID")
    private Long deptId;

    /** 事件类型 */
    @Excel(name = "事件类型")
    private Integer alarm;

    /** 实际压力值 */
    @Excel(name = "实际压力值")
    private Double pressValue;

    /** 电磁阀状态 */
    @Excel(name = "电磁阀状态")
    private Integer solenoidValveOnState;

    /** 原消息数据 */
    @Excel(name = "原消息数据")
    private String msgContent;

    /** 事件日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "事件日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date eventDate;

    /** 接收时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "接收时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date receiveTime;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSn(String sn)
    {
        this.sn = sn;
    }

    public String getSn()
    {
        return sn;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setAlarm(Integer alarm)
    {
        this.alarm = alarm;
    }

    public Integer getAlarm()
    {
        return alarm;
    }
    public void setPressValue(Double pressValue)
    {
        this.pressValue = pressValue;
    }

    public Double getPressValue()
    {
        return pressValue;
    }
    public void setSolenoidValveOnState(Integer solenoidValveOnState)
    {
        this.solenoidValveOnState = solenoidValveOnState;
    }

    public Integer getSolenoidValveOnState()
    {
        return solenoidValveOnState;
    }
    public void setMsgContent(String msgContent)
    {
        this.msgContent = msgContent;
    }

    public String getMsgContent()
    {
        return msgContent;
    }
    public void setEventDate(Date eventDate)
    {
        this.eventDate = eventDate;
    }

    public Date getEventDate()
    {
        return eventDate;
    }
    public void setReceiveTime(Date receiveTime)
    {
        this.receiveTime = receiveTime;
    }

    public Date getReceiveTime()
    {
        return receiveTime;
    }
    public void setSendTime(Date sendTime)
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime()
    {
        return sendTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("sn", getSn())
                .append("deptId", getDeptId())
                .append("alarm", getAlarm())
                .append("pressValue", getPressValue())
                .append("solenoidValveOnState", getSolenoidValveOnState())
                .append("msgContent", getMsgContent())
                .append("eventDate", getEventDate())
                .append("receiveTime", getReceiveTime())
                .append("sendTime", getSendTime())
                .append("remark", getRemark())
                .toString();
    }
}
